function QS_FV_SettingMenu($container, cfg, callback){
	this.$container = $container;
	this.cfg = cfg;
	this.callback = callback;
	this.currentExNode = null;
	this.currentExNode2 = null;
	this._init();
}

QS_FV_SettingMenu.prototype={
	_init:function(){
		var self = this;
		this.treeMenu = new Util.TreeView(this.$container, this._getTreeMenuData(), {
			onExpand:function(node){
					var level = node.className;
					if(self[level] && self[level]._id != node._id){
						self[level].expand(false, false);
					}
					self[level] = node;		
			},
			onCollapse:function(node){
//				console.log("collapse:",node);
			},
			onClick:function(node){
				self.callback && self.callback.onclick && self.callback.onclick(node);
			}
		}, {
			width: this.cfg.sidebarWidth
		});
		
		this.treeMenu.expandAll(false);
	},
	selectNodeByVal:function(val){
		var node = this.treeMenu.getNodeByValue(val)
		this.treeMenu.selectNode(node);
		this.callback && this.callback.onclick && this.callback.onclick(node);
	},
	_getTreeMenuData:function(){
		var treeData = {
			txt:'root',
			children:[{txt:'All Rated Stocks', val:'AllStocks'},
			
			{txt:'Super Sector',children:[{txt:'Cyclical'},{txt:'Defensive'},{txt:'Sensitive'}]},
			
			{txt:'Sector',children:[{txt:'Basic Materials'},{txt:'Consumer Cyclical'},{txt:'Financial Services'},{txt:'Real Estate'},{txt:'Consumer Defensive'},{txt:'Healthcare'},{txt:'Utilities'},{txt:'Communication Services'},{txt:'Energy'},{txt:'Industrials'},{txt:'Technology'}]},
			
			{txt:'Industry', children:[
				{txt:'Basic Materials',children:[{txt:'Agricultural Inputs'},{txt:'Aluminum'},{txt:'Building Materials'},{txt:'Chemicals'},{txt:'Coal'},{txt:'Copper'},{txt:'Gold'},{txt:'Industrial Metals & Minerals'},{txt:'Lumber & Wood Production'},{txt:'Paper & Paper Products'},{txt:'Silver'},{txt:'Specialty Chemicals'},{txt:'Steel'}]},
				
				{txt:'Consumer Cyclical',children:[{txt:'Advertising Agencies'},{txt:'Apparel Manufacturing'},{txt:'Apparel Stores'},{txt:'Auto & Truck Dealerships'},{txt:'Auto Manufacturers'},{txt:'Auto Parts'},{txt:'Broadcasting - Radio'},{txt:'Broadcasting - TV'},{txt:'Department Stores'},{txt:'Footwear & Accessories'},{txt:'Gambling'},{txt:'Home Furnishings & Fixtures'},{txt:'Home Improvement Stores'},{txt:'Leisure'},{txt:'Lodging'},{txt:'Luxury Goods'},{txt:'Marketing Services'},{txt:'Media - Diversified'},{txt:'Packaging & Containers'},{txt:'Personal Services'},{txt:'Publishing'},{txt:'Recreational Vehicles'},{txt:'Residential Construction'},{txt:'Resorts & Casinos'},{txt:'Restaurants'},{txt:'Rubber & Plastics'},{txt:'Specialty Retail'},{txt:'Textile Manufacturing'}]},
				
				{txt:'Financial Services',children:[{txt:'Asset Management'},{txt:'Banks - Global'},{txt:'Banks - Regional - Africa'},{txt:'Banks - Regional - Asia'},{txt:'Banks - Regional - Australia'},{txt:'Banks - Regional - Canada'},{txt:'Banks - Regional - Europe'},{txt:'Banks - Regional - Latin America'},{txt:'Banks - Regional - US'},{txt:'Capital Markets'},{txt:'Credit Services'},{txt:'Financial Exchanges'},{txt:'Insurance - Diversified'},{txt:'Insurance - Life'},{txt:'Insurance - Property & Casualty'},{txt:'Insurance - Reinsurance'},{txt:'Insurance - Specialty'},{txt:'Insurance Brokers'},{txt:'Savings & Cooperative Banks'},{txt:'Specialty Finance'}]},
				
				{txt:'Real Estate',children:[{txt:'Real Estate - General'},{txt:'Real Estate Services'},{txt:'REIT - Diversified'},{txt:'REIT - Healthcare Facilities'},{txt:'REIT - Hotel & Motel'},{txt:'REIT - Industrial'},{txt:'REIT - Office'},{txt:'REIT - Residential'},{txt:'REIT - Retail'}]},
				{txt:'Consumer Defensive',children:[{txt:'Beverages - Brewers'},{txt:'Beverages - Soft Drinks'},{txt:'Beverages - Wineries & Distilleries'},{txt:'Confectioners'},{txt:'Discount Stores'},{txt:'Education & Training Services'},{txt:'Farm Products'},{txt:'Food Distribution'},{txt:'Grocery Stores'},{txt:'Household & Personal Products'},{txt:'Packaged Foods'},{txt:'Pharmaceutical Retailers'},{txt:'Tobacco'}]},
				
				{txt:'Healthcare',children:[{txt:'Biotechnology'},{txt:'Diagnostics & Research'},{txt:'Drug Manufacturers - Major'},{txt:'Drug Manufacturers - Specialty & Generic'},{txt:'Health Care Plans'},{txt:'Long-Term Care Facilities'},{txt:'Medical Care'},{txt:'Medical Devices'},{txt:'Medical Distribution'},{txt:'Medical Instruments & Supplies'}]},
				
				{txt:'Utilities',children:[{txt:'Utilities - Diversified'},{txt:'Utilities - Independent Power Producers'},{txt:'Utilities - Regulated Electric'},{txt:'Utilities - Regulated Gas'},{txt:'Utilities - Regulated Water'}]},
				
				{txt:'Communication Services',children:[{txt:'Pay TV'},{txt:'Telecom Services'}]},
				
				{txt:'Energy',children:[{txt:'Oil & Gas Drilling'},{txt:'Oil & Gas E&P'},{txt:'Oil & Gas Equipment & Services'},{txt:'Oil & Gas Integrated'},{txt:'Oil & Gas Midstream'},{txt:'Oil & Gas Refining & Marketing'}]},
				
				{txt:'Industrials',children:[{txt:'Aerospace & Defense'},{txt:'Airlines'},{txt:'Airports & Air Services'},{txt:'Business Equipment'},{txt:'Business Services'},{txt:'Conglomerates'},{txt:'Diversified Industrials'},{txt:'Engineering & Construction'},{txt:'Farm & Construction Equipment'},{txt:'Industrial Distribution'},{txt:'Infrastructure Operations'},{txt:'Integrated Shipping & Logistics'},{txt:'Metal Fabrication'},{txt:'Pollution & Treatment Controls'},{txt:'Railroads'},{txt:'Rental & Leasing Services'},{txt:'Security & Protection Services'},{txt:'Shipping & Ports'},{txt:'Staffing & Outsourcing Services'},{txt:'Tools & Accessories'},{txt:'Truck Manufacturing'},{txt:'Trucking'},{txt:'Waste Management'}]},
				
				{txt:'Technology',children:[{txt:'Communication Equipment'},{txt:'Computer Distribution'},{txt:'Computer Systems'},{txt:'Consumer Electronics'},{txt:'Contract Manufacturers'},{txt:'Data Storage'},{txt:'Electronic Components'},{txt:'Electronic Gaming & Multimedia'},{txt:'Electronics Distribution'},{txt:'Health Information Services'},{txt:'Information Technology Services'},{txt:'Internet Content & Information'},{txt:'Scientific & Technical Instruments'},{txt:'Semiconductor Equipment & Materials'},{txt:'Semiconductor Memory'},{txt:'Semiconductors'},{txt:'Software - Application'},{txt:'Software - Infrastructure'},{txt:'Solar'}]}]
			},
			
			{txt:'Size of Moat <span class="brackets">(Business Quality)</span>',children:[{txt:'Wide'},{txt:'Narrow'},{txt:'None'}]},
			
			{txt:'Fair Value Uncertainty <span class="brackets">(Business Risk)</span>',children:[{txt:'Low'},{txt:'Medium', val:'Med'},{txt:'High'}]},
			
			{txt:'Index',children:[{txt:'NYSE'},{txt:'Nasdaq', val:'NAS'}]}]
		};
		
		var parseData = function(array, depth){
			for(var i in array){
				var obj = array[i];
				obj.className = 'level' + depth;
				if(!obj.val){
					obj.val = obj.txt.replace('&', '!');
				}
				if(obj.children){
					arguments.callee(obj.children, depth+1)
				}
			}
		};
		parseData(treeData.children, 1);
		return treeData;
	}
}